package com.example.entity;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.List;

@Data
@Builder
public class DayHourChargeConfig {

    private Long id;
    private String configName;
    private Integer freeTime;
    private BigDecimal chargeMaxAmount;
    private BigDecimal overNightCharges;
    private LocalTime overNightStart;
    private LocalTime overNightEnd;
    private BigDecimal halfHourRate;
    private List<HourlyRate> hourlyRates;

    @Data
    @Builder
    public static class HourlyRate {
        private int hours;
        private BigDecimal rate;
    }

}
